package com.dataseek.iot.device.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 *
 */
@Data
@TableName(value = "tenant.device_att_value_his")
public class DeviceAttrValueHis {

    //主鍵id
    @TableId(value = "id")
    private Long id;

    @TableField(value = "pdt_code")
    private String pdtCode;

    @TableField(value = "device_code")
    private String deviceCode;

    @TableField(value = "att_code")
    private String attCode;

    @TableField(value = "att_value")
    private float attValue;

    @TableField(value = "att_name")
    private String attName;

    //创建时间
    @TableField(value="create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
